package br.edu.ufcg.lsd.wbis.control.user;

import org.junit.Test;

import br.edu.ufcg.lsd.wbis.control.exception.BusinessValidationException;

/**
 * Tests for class UserValidator.
 * 
 * @author Renato Miceli - renato@lsd.ufcg.edu.br
 * @see UserValidator
 */
public class UserValidatorTest {

	@Test(expected = BusinessValidationException.class)
	public void validatingNullUserLevel() throws BusinessValidationException {
		UserValidator.validateUserLevel(null);
	}

	@Test
	public void validatingNotNullUserLevels() throws BusinessValidationException {
		UserValidator.validateUserLevel(UserLevel.ADMIN);
		UserValidator.validateUserLevel(UserLevel.COMMON_USER);
	}

}
